<template>
    <div class="div">
        <!-- 导航栏 -->
        <van-nav-bar left-arrow @click-left="onClickLeft">
            <template #title>
                <span>订单详情</span>
            </template>
        </van-nav-bar>  
        <h3 style="margin-left: 18px;margin-top: 10px;">
            商家正在备餐
        </h3>
        <van-cell-group inset style="margin-bottom: 10px;">
            <van-cell value="内容" >
                <template #title>
                    <span>预计送达</span><br>
                    <span>19:30</span>
                </template>
                <template #default>
                    <van-tag plain type="primary" 
                            color="#ff9101"
                            style="margin-right: 5px;">
                        <span class="span8">美团快送</span>
                    </van-tag>
                </template>
            </van-cell>
            <van-cell >
                <van-tabbar :fixed="false" :border="false" v-model="active" active-color="#000000" inactive-color="#000000">
                    <van-tabbar-item icon="edit">改订单信息</van-tabbar-item>
                    <van-tabbar-item icon="after-sale">申请售后</van-tabbar-item>
                    <van-tabbar-item icon="chat-o">在线联系</van-tabbar-item>
                </van-tabbar>
            </van-cell>
        </van-cell-group>
        <van-cell-group inset>
            <van-cell>
                <template #title>
                    <span class="span11">商家名称</span>
                    <van-icon name="arrow" />
                </template>
            </van-cell>
            <van-cell v-for="(i,idnex) in items"
                      :key="idnex">
                <template #icon>
                    <van-icon :name="getImagePath(i.itemPicture)" 
                    size="75"
                    class="search-icon" 
                    style="margin-right: 10px;"
                    />
                </template>
                <!-- 商品及内容 -->
                <template #title>
                    <span class="custom-title span12">{{i.itemName}}</span>
                </template>
                <template #default>
                    <span class="custom-title span12">￥{{i.itemPrice}}</span>
                </template>
                
                <template #label>
                    <span v-for="s in i.shoppingCartDetails" :key="s.id"
                          class="pingfen-title">
                        {{s.selectedValue}}
                    </span>
                    <br>
                    <span>X{{i.itemNum}}</span>
                </template>
            </van-cell>
            <!-- 选项 -->
            <van-cell>
                <template #title>
                    <span class="custom-title span12">打包费</span>
                    <br>
                    <span class="custom-title span12">用户配送费</span>
                    <br>
                    <van-col>
                        <van-icon size="25" :name="require('../../assets/img/红包.png')" />
                    </van-col>
                    <van-col>
                        <div >
                        <span class="custom-title span12">美团红包</span>
                        </div>
                    </van-col>
                </template>
                <template >
                    <span class="custom-title span12">￥1.2</span>
                    <br>
                    <span class="custom-title span12">￥2.2</span>
                    <br>
                    <span class="span13">暂无可用</span>
                    <van-icon name="arrow" />
                </template>
            </van-cell>
            <van-cell>
                <template #default>
                        <span class="custom-title span12" style="margin-left: 25%;">
                        <span class="span17">已优惠：￥2 &nbsp;合计￥{{ total }}</span> 
                    </span>
                </template>
            </van-cell>
        </van-cell-group>
     </div>
</template>

<script>
    export default {
        name:"orderDTDetail",
        data() {
            return {
                
            }
        },
        methods: {
            
        },
        mounted() {
            
        },
    }
</script>

<style>

</style>